package com.zy.dsms.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Role  implements Serializable{
  
	private static final long serialVersionUID = 1L;

	private Integer roleId;

    private String roleName;

    private String roleDescription;
    
    private String roleStatus;//角色状态

    public String getRoleStatus() {
		return roleStatus;
	}

	public void setRoleStatus(String roleStatus) {
		this.roleStatus = roleStatus;
	}

	public void setPermissions(Set<Permission> permissions) {
		this.permissions = permissions;
	}

	private Date roleCreateDate;

    private String roleCreator;
    
    private Set<User> users = new HashSet<User>();
    
    private Set<Permission> permissions = new HashSet<Permission>();
    
    public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	public Set<Permission> getPermissions() {
		return permissions;
	}

	public void setPermission(Set<Permission> permissions) {
		this.permissions = permissions;
	}

	public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getRoleDescription() {
        return roleDescription;
    }

    public void setRoleDescription(String roleDescription) {
        this.roleDescription = roleDescription == null ? null : roleDescription.trim();
    }

    public Date getRoleCreateDate() {
        return roleCreateDate;
    }

    public void setRoleCreateDate(Date roleCreateDate) {
        this.roleCreateDate = roleCreateDate;
    }

    public String getRoleCreator() {
        return roleCreator;
    }

    public void setRoleCreator(String roleCreator) {
        this.roleCreator = roleCreator == null ? null : roleCreator.trim();
    }
}